]> dgit.raspbian.org Git - gnome-shell.git/commit
popupMenu: Respect items' :can-focus property
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 11 Sep 2018 15:55:36 +0000 (17:55 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Sat, 9 Feb 2019 14:48:27 +0000 (14:48 +0000)
commit24a26e025b65494f8a83f22e0876b52287380ea8
treebaafcbcebbd43510d6f30a918d34dabc82afb160
parent1eb7ba050616f49c2713498bd409ca67fda06ff5
popupMenu: Respect items' :can-focus property

Menu items use a single 'active' state that follows both hover and
keyboard focus. It therefore makes sense for the active item to always
grab the focus, in particular as an item that is sensitive but not
focusable by keynav would be rather weird.

As it turns out, we do have a case that is weird enough where we want
exactly that, so only grab focus if the actor's :can-focus property
allows it.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/171
js/ui/popupMenu.js